<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><!--设定页面使用的字符集-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><!--优先使用IE最新片和chrome-->
    <meta  name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"><!--禁止缩放-->
    <title>报名</title>
    <link rel="stylesheet" href="./css/index.css">
    <script src="./js/jquery/jquery.min.js"></script>
</head>
<body>
    <div class="fixed_box"> 
        <div class="body_swiper">
            <img class="banner_bg" src="./images/index_bg.png" alt="">
            <div class="body_content">
                <img class="index_detail" src="./images/index_detail.png" alt="">
                <img class="index_tips" src="./images/index_tips.png" alt="">
                <div class="index_linear_bg">
                    <div class="index_input_box">
                        <div class="index_input">
                            <input class="index_input_val" type="text" placeholder="输入口令JAY118">
                            <p class="index_getNumber"><span>获取个人专属口令</span></p>
                        </div>
                    </div>
                    <div class="index_btn_box">
                        <img class="num_err" src="./images/btn_cyhd_cur.png " alt="">
                        <img class="num_true" style="display:none" src="./images/btn_cyhd_act.png " alt="">
                    </div>
                    <p class="index_txt_box">已有<span>xxx</span>人参与，<span class="look_more" onclick="window.location.href='./page4.html'">查看全部 ></span></p>
                    <div class="index_user_list">
                        <ul>
                            <li><img src="./images/zhu.png" alt=""></li>
                            <li><img src="./images/zhu.png" alt=""></li>
                            <li><img src="./images/zhu.png" alt=""></li>
                            <li><img src="./images/zhu.png" alt=""></li>
                            <li><img src="./images/zhu.png" alt=""></li>
                            <li><img src="./images/zhu.png" alt=""></li>
                            <li><img src="./images/zhu.png" alt=""></li>
                            <li><img src="./images/zhu.png" alt=""></li>
                            <li><img src="./images/zhu.png" alt=""></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="fixed_alert">
        <div class="alert_content">
            <p>请输入正确口令，要区分大小写哦~</p>
            <img src="./images/alert_bg.png" alt="">
        </div>
    </div>
    <script>
        var inputVal;//口令
        //用户点击参与活动按钮
        $('.num_true').click(function(){
            // alert('口令'+inputVal);
            window.location.href='./page2.html';
        })
        //输入验证 JAY118=哔哔时代 JAY520=影相声色 //JYA079=颜知小姐 JAY979=不会写编辑部
        $('.index_input_val').bind('input propertychange', function() {inputChange();}); 
        function inputChange(){
            inputVal = $('.index_input_val').val();// console.log(inputVal);
            if(inputVal == 'JAY118' || inputVal == 'JAY520' || inputVal == 'JAY979' || inputVal == 'JYA079'){
                //用户输入正确按钮亮起
                $('.num_err').hide();$('.num_true').show();
            }else{
                $('.num_err').show();$('.num_true').hide();
            }
        }
        //用户点击未亮起来的参与活动按钮
        $('.num_err').click(function(){$('.fixed_alert').show();setTimeout(function(){$('.fixed_alert').hide();},1500)})
    </script>
</body>
</html>